package JAVACORE_TRAINING.OOPs.ARRAY_AND_COLLECTIONS.DYNAMIC_ARRAYS.COLLECTIONFRAMEWORK.TheSetInterfaces;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Scanner;
import java.util.Set;

public class Sample01 {
	public static void main(String[] args) {
		Set<Integer> set = new HashSet<Integer>();
		set.add(10);
		set.add(20);
		set.add(10);
		Iterator it = set.iterator();
		while (it.hasNext()) {
			System.out.println("Value = "+ it.next());
		}
		//Value = 10 (Not Duplicate)
	}
}
